{include file="common/header"}
<div class="main">
    <div class="wrap">
        <div class="main_tab_ht"></div>
        <div class="main main_tab" style="top: 120px;">
            <div class="wrap">
                <div class="main_toggle toggle3">
                    <ul>
                        {volist name=":catalog_child($catalog.level1)" id="vo"}
                        <li class="{if $catalog.id == $vo.id}on{/if}"><a href="{$vo.url}">{$vo.title}</a></li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>
        <div class="page_lxfs">
            <div class="lsfx_tit" style="padding-top:0">
                <h3>{$catalog.title}</h3>
            </div>
            <div id="form">
                <input id="姓名" type="text" placeholder="请输入姓名" /> 
                <input id="手机" type="text" placeholder="请输入手机号" /> 
                <textarea id="咨询内容" type="text" placeholder="请输入内容"></textarea>
                <button onclick="message()">提交</button>
                <div class="message"></div>
            </div>
            <script type="text/javascript">
                function message() {
                    let captcha = $('#captcha').val();
                    let content = {
                        '姓名': $('#姓名').val(),
                        '手机': $('#手机').val(),
                        '咨询内容': $('#咨询内容').val(),
                    };
                    post('api/form/form/submit', {id: 1, captcha: captcha, content: content}, function (res) {
                        if (res.status == 'success') {
                            $('.message').html(res.message);
                            $('#姓名').val('');
                            $('#手机').val('');
                            $('#咨询内容').val('');
                            $('.message').html(res.message);
                        } else {
                            $('.message').html(res.message);
                        }
                    })
                }
            </script>
            <div class="lxfs_web">
            <div class="lxfs_web_t">
            <h3>{$system.company}</h3>
            </div>
            <div class="lxfs_web_xq">
            <p class="p1">地址：{$system.address}</p>
            <p class="p2">电话：{$system.telephone}</p>
            <p class="p3">微信：{$system.wechat}</p>
            <p class="p4">手机：{$system.phone}</p>
            <p class="p5">邮箱：{$system.email}</p>
            <div class="lxfs_kf">
                <a href="http://wpa.qq.com/msgrd?v=3&amp;uin={$system.qq}&amp;site=qq&amp;menu=yes">
                    <img src="/themes/wzjswlgsrjkf/static/images/icon38.png">
                </a>
            </div>
            </div>
            </div>
            <div class="lxfs_ewm">
            <div class="lxfs_ewm_pic"><img src="{$system.wechat_qrcode}"></div>
            <p>官方微信公众平台</p>
            </div>
            <div class="clear">&nbsp;</div>
        </div>
    </div>
</div>
{include file="common/footer"}